import 'package:commons/commons.dart';
import 'package:dio/dio.dart';

import 'exception.dart';

class NetErrorInterceptor extends Interceptor {
  @override
  void onError(DioException err, ErrorInterceptorHandler handler) {
    NetException exception = NetException.create(err);
    ILog.d('DioError====: ${exception.toString()}');
    super.onError(err, handler);
  }
}
